<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/24 0024
 * Time: 14:27
 */
ini_set('include_path', './tmp');

$fp = fopen('php.ini', 'r', true);

while (!feof($fp)) {
    $line = trim(fgetss($fp,256));
//    echo ">$line\n";
}
fclose($fp);
//var_dump(file('php.ini',true));